using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools
{
    /// <summary>
    /// <para>Add Linear Dispatch Layout</para>
    /// <para>Add a linear dispatch layout to a diagram template</para>
    /// <para>将线性调度布局添加到逻辑示意图模板</para>
    /// </summary>    
    [DisplayName("Add Linear Dispatch Layout")]
    public class AddLinearDispatchLayout : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AddLinearDispatchLayout()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Network</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_template_name">
        /// <para>Input Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_is_active">
        /// <para>Active</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public AddLinearDispatchLayout(object _in_utility_network, object _template_name, _is_active_value _is_active)
        {
            this._in_utility_network = _in_utility_network;
            this._template_name = _template_name;
            this._is_active = _is_active;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Add Linear Dispatch Layout";

        public override string CallName => "un.AddLinearDispatchLayout";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_utility_network, _template_name, _is_active.GetGPValue(), _junction_placement_type.GetGPValue(), _is_unit_absolute.GetGPValue(), _maximum_shift_absolute, _maximum_shift_proportional, _minimum_shift_absolute, _minimum_shift_proportional, _iterations_number, _is_path_preserved.GetGPValue(), _are_leaves_moved.GetGPValue(), _are_leaves_expanded.GetGPValue(), _expand_shift_absolute, _expand_shift_proportional, _out_utility_network, _out_template_name];

        /// <summary>
        /// <para>Input Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Input Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _template_name { get; set; }


        /// <summary>
        /// <para>Active</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Active")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public _is_active_value _is_active { get; set; }

        public enum _is_active_value
        {
            /// <summary>
            /// <para>ACTIVE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ACTIVE")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>INACTIVE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("INACTIVE")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Junctions Placement</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Junctions Placement")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _junction_placement_type_value _junction_placement_type { get; set; } = _junction_placement_type_value._EQUAL_DISTANCE;

        public enum _junction_placement_type_value
        {
            /// <summary>
            /// <para>EQUAL_DISTANCE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("EQUAL_DISTANCE")]
            [GPEnumValue("EQUAL_DISTANCE")]
            _EQUAL_DISTANCE,

            /// <summary>
            /// <para>USER_DEFINE_DISTANCE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("USER_DEFINE_DISTANCE")]
            [GPEnumValue("USER_DEFINE_DISTANCE")]
            _USER_DEFINE_DISTANCE,

            /// <summary>
            /// <para>ITERATIVE_DISTANCE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ITERATIVE_DISTANCE")]
            [GPEnumValue("ITERATIVE_DISTANCE")]
            _ITERATIVE_DISTANCE,

        }

        /// <summary>
        /// <para>Spacing values interpreted as absolute units in the diagram coordinate system</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Spacing values interpreted as absolute units in the diagram coordinate system")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _is_unit_absolute_value _is_unit_absolute { get; set; } = _is_unit_absolute_value._false;

        public enum _is_unit_absolute_value
        {
            /// <summary>
            /// <para>ABSOLUTE_UNIT</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ABSOLUTE_UNIT")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>PROPORTIONAL_UNIT</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("PROPORTIONAL_UNIT")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Maximum Shift</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Maximum Shift")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public string _maximum_shift_absolute { get; set; } = "2 Unknown";


        /// <summary>
        /// <para>Maximum Shift</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Maximum Shift")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _maximum_shift_proportional { get; set; } = 2;


        /// <summary>
        /// <para>Minimum Shift</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Minimum Shift")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public string _minimum_shift_absolute { get; set; } = "2 Unknown";


        /// <summary>
        /// <para>Minimum Shift</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Minimum Shift")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _minimum_shift_proportional { get; set; } = 2;


        /// <summary>
        /// <para>Number of Iterations</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Number of Iterations")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public long _iterations_number { get; set; } = 5;


        /// <summary>
        /// <para>Preserve path</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Preserve path")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _is_path_preserved_value _is_path_preserved { get; set; } = _is_path_preserved_value._true;

        public enum _is_path_preserved_value
        {
            /// <summary>
            /// <para>PRESERVE_PATH</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("PRESERVE_PATH")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>IGNORE_PATH</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("IGNORE_PATH")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Move leaves</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Move leaves")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _are_leaves_moved_value _are_leaves_moved { get; set; } = _are_leaves_moved_value._false;

        public enum _are_leaves_moved_value
        {
            /// <summary>
            /// <para>MOVE_LEAVES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("MOVE_LEAVES")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>DO_NOT_MOVE_LEAVES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("DO_NOT_MOVE_LEAVES")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Expand leaves</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Expand leaves")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _are_leaves_expanded_value _are_leaves_expanded { get; set; } = _are_leaves_expanded_value._false;

        public enum _are_leaves_expanded_value
        {
            /// <summary>
            /// <para>EXPAND_LEAVES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("EXPAND_LEAVES")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>DO_NOT_EXPAND_LEAVES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("DO_NOT_EXPAND_LEAVES")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Maximum Expand Shift</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Maximum Expand Shift")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public string _expand_shift_absolute { get; set; } = "2 Unknown";


        /// <summary>
        /// <para>Maximum Expand Shift</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Maximum Expand Shift")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _expand_shift_proportional { get; set; } = 2;


        /// <summary>
        /// <para>Output Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        /// <summary>
        /// <para>Output Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_template_name { get; set; }


        public AddLinearDispatchLayout SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}